/**
 * <copyright>
 * </copyright>
 *
 * $Id: EpreciseFactoryImpl.java 478 2007-04-03 02:01:41Z petterei $
 */
package biz.modelx.precise.ui.model.eprecise.impl;

import biz.modelx.precise.ui.model.eprecise.*;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class EpreciseFactoryImpl extends EFactoryImpl implements EpreciseFactory {
	/**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EpreciseFactory init() {
		try {
			EpreciseFactory theEpreciseFactory = (EpreciseFactory)EPackage.Registry.INSTANCE.getEFactory("biz.precise.ui.model"); 
			if (theEpreciseFactory != null) {
				return theEpreciseFactory;
			}
		}
		catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new EpreciseFactoryImpl();
	}

	/**
	 * Creates an instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EpreciseFactoryImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EprecisePackage getEprecisePackage() {
		return (EprecisePackage)getEPackage();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @deprecated
	 * @generated
	 */
	@Deprecated
	public static EprecisePackage getPackage() {
		return EprecisePackage.eINSTANCE;
	}

} //EpreciseFactoryImpl
